#ifndef __START_SCENE_H__
#define __START_SCENE_H__

#include "cocos2d.h"
#include "ui/CocosGUI.h"
#include "HelloWorldScene.h"
#include "SimpleAudioEngine.h"



class StartScene : public cocos2d::Layer
{

public:
    
	static cocos2d::Scene* createScene();
	virtual bool init();
	virtual void update(float dt);
	virtual void ButtentouchEvent(cocos2d::Object *pSender, cocos2d::ui::TouchEventType type);
	virtual void newGametouchEvent(cocos2d::Object *pSender, cocos2d::ui::TouchEventType type);
	virtual void optiontouchEvent(cocos2d::Object *pSender, cocos2d::ui::TouchEventType type);
	virtual void quittouchEvent(cocos2d::Object *pSender, cocos2d::ui::TouchEventType type);
	virtual void contintouchEvent(cocos2d::Object *pSender, cocos2d::ui::TouchEventType type);
	

	
	cocos2d::Sprite* startScene;   //开始背景
	cocos2d::Sprite* jin;	
	cocos2d::Sprite* mid;	
	cocos2d::Sprite* yuan;
	float ji;
	float mi;
	float yu;
	float vg;
	
	

	
	cocos2d::ui::Button* newGame;   //按钮newgame
	cocos2d::ui::Button* option;    //option按钮
	cocos2d::ui::Button* quit;      //quit按钮
	cocos2d::ui::Button* contin;    //continue按钮


	cocos2d::ui::Button*  star;       //start按钮

	void titleAction();     //标题动画
	void titleAction2();    //标题动画2

	CREATE_FUNC(StartScene);
};


#endif